<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isErrorPage="true"%>
<%@page import="java.lang.Exception"%>
<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <base href="<%=basePath%>">
    
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
   
    <title>异常页面</title>
    
    <link rel="stylesheet" type="text/css" href="<%=basePath%>assets/bootstrap/css/resetPro.css">
	<link href="<%=basePath%>assets/bootstrap/css/bootstrap-combined.min.css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery-2.0.0.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery-ui.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery.ui.touch-punch.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery.htmlClean.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/ckeditor/ckeditor.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/ckeditor/config.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>assets/bootstrap/Font-Awesome-3.2.1/css/font-awesome.min.css">
	<!--这个js有时候会冲突-->
	<!--<script type="text/javascript" src="<%=basePath%>bootstrap/js/scripts.js"></script>-->
	
	<style type="text/css">
		.onediv{
			width: 220px;
			height: 300px;
			margin: 0px auto;
			margin-top:22px;
			}
		strong{
			margin-right: 10px;
		}
		</style>
 <body style="min-height: 660px; cursor: auto;" class="edit">
   <div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<ul class="breadcrumb">
				<li>
					<a href="#">系统错误</a> <span class="divider">/</span>
				</li>
				<li>
					<a href="#">异常页面</a> <span class="divider"></span>
				</li>
				
			</ul>
				
			<div class="row-fluid">
				<div class="hero-unit">
						<h1>
							Exception Page!
						</h1>
						<p>
							<br>发生异常!<br>
							
							<c:choose>
							  	<c:when test="${empty oneException }">
									<div class="alert">
										未知异常。。。Orz
									</div>
								</c:when>
								<c:otherwise>
									异常信息:${empty oneException.message?'空':oneException.message}
									&nbsp;&nbsp;堆栈信息&gt;&gt;&gt;<br>
									
									<c:forEach items="${oneException.stackTrace}" var="one">
									${one}<br>
									</c:forEach>
								</c:otherwise>
						</c:choose>
							
							
							
							<br>
							
						</p>
						<p>
						    <c:if test="${not empty xPath}">
						    <a class="btn btn-primary btn-large" href="${xPath}">返回上一页 »</a>
						    </c:if>
							<a class="btn btn-primary btn-large" href="<%=basePath%>indexshow">跳转到商品首页 »</a>
						</p>
				</div>
			</div>
		</div>
	</div>
	</div>
  </body>
</html>
